package swust;
import java.util.Scanner;
public class SumOfInverse0026 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a,b,s;
		while(scan.hasNext()) {
			a = scan.nextInt();
			b = scan.nextInt();
			System.out.println(Inverse(a) + Inverse(b));
		}
	}
	
	private static int Inverse(int n) {
		String array = "";
		while (n > 0) {
			array += n%10;
			n /= 10;
		}
		return Integer.parseInt(array);
	}
}
